using CNRegex.Entity;
using System.Collections.Generic;
using NHibernate;
namespace CNRegex.Biz.BizAccess {
	public partial class  BizRegexUser
	{
		private void Initialize()
		{

		}
		public RegexUser Get(string name, string password)
		{
			IList<RegexUser> users = dbAccess.ListBy(x => x.Name == name && x.Password == password);
			if (users.Count > 0)
				return users[0];
			return null;
		}

		public RegexUser Get(string name)
		{
			IList<RegexUser> users = dbAccess.ListBy(x => x.Name == name);
			if (users.Count > 0)
				return users[0];
			return null;
		}
	}
}
		